﻿using PLCSharp.CoreModel.Prism;
using PLCSharp.Views.Vision.Camera;
using Prism.Dialogs;
using Prism.Events;
using Prism.Ioc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Media3D;

namespace PLCSharp.Views.Homepage
{
    public class CustomControlConfigViewModel: DialogAwareBase
    {
 
        private CustomControl _SelectedCustomControl;

        public CustomControlConfigViewModel(IContainerExtension container, IEventAggregator ea, IDialogService dialogService) : base(container, ea, dialogService)
        {
        }

        /// <summary>
        /// 
        /// </summary>
        public CustomControl SelectedCustomControl
        {
            get { return _SelectedCustomControl; }
            set { SetProperty(ref _SelectedCustomControl, value); }
        }

        public override void OnDialogOpened(IDialogParameters parameters)
        {
            SelectedCustomControl = parameters.GetValue<CustomControl>("SelectedCustomControl");
         
            if (SelectedCustomControl == null)
            {


            }
            else
            {

              
            }

        }

    }
}
